package com.copa.module.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * @author copa
 * @createDate 2021-02-25
 * @function   t_admin_log表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_admin_log")
@ApiModel(value="AdminLog对象", description="")
@Builder
public class AdminLogEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "名字")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "方法描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "方法名")
    @TableField("method")
    private String method;

    @ApiModelProperty(value = "传入参数")
    @TableField("params")
    private String params;

    @ApiModelProperty(value = "日志类型（info-正常，error-异常）")
    @TableField("log_type")
    private String logType;

    @ApiModelProperty(value = "操作ip")
    @TableField("ip")
    private String ip;

    @ApiModelProperty(value = "操作时间")
    @TableField("time")
    private Long time;

    @ApiModelProperty(value = "错误消息")
    @TableField("exception_detail")
    private String exceptionDetail;

    @ApiModelProperty(value = "是否删除 0否 1是")
    @TableField("is_delete")
    private Integer isDelete;


    public static final String USERNAME = "username";

    public static final String DESCRIPTION = "description";

    public static final String METHOD = "method";

    public static final String PARAMS = "params";

    public static final String LOG_TYPE = "log_type";

    public static final String IP = "ip";

    public static final String IS_DELETE = "is_delete";


}
